#!/bin/sh

SRC_PATH="/home/matt/Documents/Classes/UpbeatWorkspace/Upbeat/Frontend/lexer_parser_src/"
DST_PATH="/home/matt/Documents/Classes/UpbeatWorkspace/Upbeat/Frontend/src/upbeat/frontend/"
cd $SRC_PATH
jflex -d $DST_PATH -v --time --pack $SRC_PATH/upbeat.flex
cd $SRC_PATH
byaccj -b upbeat -v -Jsemantic=upbeatVal -Jpackage=upbeat.frontend -Jclass=parser -Jnoconstruct upbeat-a.yacc

mv *.java $DST_PATH